﻿<div class="" ng-controller="UE.DealerListController as vm">
    <div class="umb-editor-header umb-panel-header ng-scope">
        <div data-element="editor-header" class="umb-editor-header umb-panel-header ng-scope">

            <div class="umb-panel-header-content-wrapper">
                <div class="umb-panel-header-content">
                    <div class="umb-panel-header-left-side -top-position">
                        <div class="umb-panel-header-title-wrapper">
                            <div class="umb-panel-header-name ng-scope ng-binding" title="">
                                <localize key="dealer_lists"></localize>
                            </div>
                            <div class="umb-panel-header-locked-description ng-binding" style="display:none;">Description</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="form-horizontal umb-editor-container umb-panel-body umb-scrollable row-fluid ng-scope">
        <div class="umb-pane">
            <!--列表内容区域-->
            <div class="filter-heading row">
                <a class="btn btn-primary" href="/umbraco#/dealer/dealerListAlias/create"><localize key="dealer_create"></localize></a>
            </div>

            <div class="filter-body">
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>编号</th>
                            <th>地址</th>
                            <th>店铺名称</th>
                            <th>负责人</th>
                            <th>联系方式</th>
                            <th class="wp20">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in vm.dealers">
                            <td>{{item.Id}}</td>
                            <td>{{item.Address}}</td>
                            <td>{{item.StoreName}}</td>
                            <td>{{item.ResponsiblePerson}}</td>
                            <td>{{item.ContactNumber}}</td>
                            <td>
                                <a class="btn btn-link" href="/umbraco/#/dealer/dealerListAlias/edit/dealer_{{item.Id}}"><localize key="actions_edit"></localize></a>
                                &nbsp;&nbsp;
                                <button class="btn btn-danger" ng-click="delete(item.Id)"><localize key="actions_delete"></localize></button>
                                &nbsp;&nbsp;
                                <button class="btn btn-info" ng-click="geocoder(item.Id)" ng-if="item.IsMistake == 'y'"><localize key="actions_resolve"></localize></button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="filter-pager">
                <umb-pagination page-number="vm.pagination.pageNumber"
                                total-pages="vm.pagination.totalPages"
                                on-next="vm.pagination.nextPage"
                                on-prev="vm.pagination.prevPage"
                                on-go-to-page="vm.pagination.goToPage">
                </umb-pagination>
            </div>
            <!--列表内容区域-->
        </div>
    </div>

    <umb-overlay ng-if="vm.overlay.show"
                 model="vm.overlay"
                 position="right">
        <umb-load-indicator ng-if="vm.loading">
        </umb-load-indicator>
    </umb-overlay>
</div>